using MessageEditDialogViewModel = FileTransferDesktop.ViewModels.Dialogs.MessageEditDialogViewModel;

namespace FileTransferDesktop.Views.Dialogs;

/// <summary>
/// MessageEditDialog.xaml 的交互逻辑
/// </summary>
public partial class MessageEditDialog
{
    public MessageEditDialogViewModel ViewModel { get; }

    public MessageEditDialog(MessageEditDialogViewModel viewModel)
    {
        ViewModel = viewModel;
        DataContext = ViewModel;
        InitializeComponent();

        // 设置关闭回调
        ViewModel.RequestClose = () => Hide();
    }
}
